import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [{
    path: '/home',
    name: 'Home',
    component: Home,
    children: []
  },
  {
    path: '/ce',
    name: 'ce',
    component: () => import('../views/ceshi/ceshi.vue'),
  },
  // {
  //   path: '/jsp',
  //   name: 'jsp验证',
  //   component: () => import('../views/jsp/jsp.html'),
  // },
  {
    path: '/table',
    name: 'table',
    component: () => import('../views/table.vue'),
  },
  {
    path: '/descriptions',
    name: 'descriptions',
    component: () => import('../views/descriptions.vue'),
  },
  {
    path: '/sprForm',
    name: 'sprForm',
    component: () => import('../views/sprForm.vue'),
  },
  {
    path: '/pathChoice',
    name: 'pathChoice',
    component: () => import('../views/pathChoice.vue'),
  },
  {
    path: '/about',
    name: 'About',
    component: () => import( /* webpackChunkName: "about" */ '../views/About.vue')
  },
  {
    path: '/fuwenben',
    name: 'fuwenben',
    component: () => import('../views/fuwenben.vue'),
  },
  {
    path: '/csv',
    name: 'csv预览',
    component: () => import('../views/csvHeiho.vue'),
  },
  {
    path: '/indexedDb',
    name: 'indexedDb数据库',
    component: () => import('../views/indexedDb.vue'),
  },
  {
    path: '/codemirror',
    name: 'codemirror编辑器',
    component: () => import('../views/codemirror.vue'),
  },
  {
    path: '/clse',
    name: '关闭项目窗口',
    component: () => import('@/components/common/close.vue'),
  },
  {
    path: '/relationgraph',
    name: 'relationgraph关系图',
    component: () => import('../views/relationgraph.vue'),
  },
  {
    path: '/lineChart',
    name: '折线图',
    component: () => import('../views/lineChart.vue'),
  },
  {
    path: '/progresswrapper',
    name: '进度条',
    component: () => import('../views/progresswrapper.vue'),
  },
  {
    path: '/3dPie',
    name: '3d饼图',
    component: () => import('../views/3dPie/3dPie.vue'),
  },
  {
    path: '/2dPie',
    name: '2d饼图',
    component: () => import('../views/2dPie/2dPie.vue'),
  },
  {
    path: '/normor',
    name: '柱形图',
    component: () => import('../views/normor/normor.vue'),
  },
  {
    path: '/highecharts3D',
    name: 'highecharts3D饼图',
    component: () => import('../views/highecharts3D/highecharts3D.vue'),
  },
  {
    path: '/sample',
    name: '样例图',
    component: () => import('../views/sample/sample.vue'),
  },
  {
    path: '/fileParsing',
    name: '样例图',
    component: () => import('../views/fileParsing/fileParsing.vue'),
  },
  {
    path: '/nestedTableForm',
    name: '表格嵌套表单',
    component: () => import('../views/nestedTableForm/nestedTableForm.vue'),
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router